//
//  HomeListSerachCell.m
//  honeyKnow
//
//  Created by AlbertWei on 2018/5/18.
//  Copyright © 2018年 AlbertWei. All rights reserved.
//

#import "HomeListSerachCell.h"
#import "UserPageInfoModel.h"

@implementation HomeListSerachCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;

}

-(void)layoutSubviews
{
    ViewRadius(self.iconImgView, self.iconImgView.height/2);
}

-(void)setModel:(UserListInfo*)model
{
    _model = model;
    self.lbName.text = model.user_nickname;
    self.lbIntroduce.text = model.address;
    [self.iconImgView setImageWithURL:safeurl(model.avatar) placeholder:emptyimage];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


//-(void)setModel:(HomeList *)model{
//
//    _model = model;
////    [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:model.avator] placeholderImage:[UIImage imageNamed:@"pic_avatar"]];
////    self.lbName.text = model.nickName ? model.nickName : @"";
////    self.lbIntroduce.text = model.introduce ? model.introduce : ASLocalizedString(@"自我介绍");
//}
@end
